<template>
  <!-- 添加或修改用户配置对话框 -->
  <el-dialog :title="title" :visible.sync="open" width="600px" :close-on-click-modal="false">
    <el-form ref="form" :model="form" :rules="rules" label-width="120px">
      <el-row>
        <el-col :span="24">
          <el-form-item :label="$locale('orderList.add.Order Number')" prop="orderSN">
            <el-input disabled v-model="form.orderSN"
                      :placeholder="$locale('orderList.add.Please enter the order number')" style="width:100%" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item :label="$locale('orderList.add.Single player placement')" prop="teacherName">
            <el-input disabled v-model="form.teacherName" :placeholder="$locale('levelList.add.Please enter sorting')"
                      style="width:100%" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item :label="$locale('orderList.add.Order time')" prop="createTime">
            <el-input disabled v-model="form.createTime"
                      :placeholder="$locale('orderList.add.Please enter the order time')" style="width:100%" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item :label="$locale('orderList.add.goods')" prop="shopDetail">
            <el-input disabled v-model="form.shopDetail" placeholder="$locale('orderList.add.goods"
                      style="width:100%" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item :label="$locale('myClass.add.Contact Email')" prop="contactEmail">
            <el-input disabled v-model="form.contactEmail"
                      :placeholder="$locale('myClass.add.Please enter the contact email address')" style="width:100%" />
          </el-form-item>
        </el-col>
        <el-col :span="24">
          <el-form-item :label="$locale('myClass.add.School Name')" prop="schoolName">
            <el-input disabled v-model="form.schoolName"
                      :placeholder="$locale('myClass.add.Please enter the school name')" style="width:100%" />
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </el-dialog>
</template>

<script>

export default {
  name: 'orderListAdd',
  data() {
    return {
      // 遮罩层
      loading: true,
      // 弹出层标题
      title: '',
      // 是否显示弹出层
      open: false,
      // 表单参数
      deviceTurnoverBoxVOS: [
        {
          deviceId: undefined,
          deviceTotal: undefined
        }
      ],
      form: {},
      deviceList: [],
      listData: [],
      // 表单校验
      rules: {}
    };
  },
  created() {

  },
  methods: {
    // 表单重置
    reset() {
      this.resetForm('form');
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      this.form = JSON.parse(JSON.stringify(row));
      this.open = true;
      this.title = this.$locale('geWudevice.view');
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    }
  }
};
</script>

<style lang="scss" scoped>
.el-rate {
  line-height: 2;
}
</style>
